import base from './base'; // 导入接口域名列表
import axios from './http'; // 导入http中创建的axios实例
const apiUrl = base.test;
// 导出接口
export default {
  // 获取用户投诉列表
  getComplaintsList (currentPage, pageSize) {
    return axios.get(`${apiUrl}/nu/client/complaints/list?currentPage=${currentPage}&pageSize=${pageSize}`);
  },

  // 用户投诉
  postComplaint (params) {
    return axios.post(`${apiUrl}/nu/client/complaints`, params);
  },

  // 获取投诉详情
  getComplaintDetail (id) {
    return axios.get(`${apiUrl}/nu/client/complaints/${id}`);
  },

  // 获取投诉回复列表
  getComplaintReply(complaintsId) {
    return axios.get(`${apiUrl}/nu/client/complaints/reply/${complaintsId}/list`);
  },

  // 获取系统通知列表
  getInform (userId) {
    return axios.get(`${apiUrl}/nu/notice/list`);
  },

  // 获取轮播图接口
  getLunBo() {
    return axios.get(`${apiUrl}/nu/shuffling/figure`);
  },
  // 获取用户评论列表
  getCommontList (currentPage, pageSize) {
    return axios.get(`${apiUrl}/nu/client/evaluation/list?currentPage=${currentPage}&pageSize=${pageSize}`);
  },
}